<?php
/**
* phpCan - http://idc.anavallasuiza.com/
*
* phpCan is released under the GNU Affero GPL version 3
*
* More information at license.txt
*/

defined('ANS') or die();

$table = $Data->getTable($info['table']);

echo $Form->select(array(
	'options' => $table->getFormatSettings($info['field'], 'values'),
	'first_option' => ' ',
	'option_text_as_value' => true,
	'variable' => $info['varname'].'[0]',
	'value' => $info['data'][''],
	'id' => $info['id_field'],
	'error' => $info['error']['']
));
?>
